package com.serviceImpl;

import com.dao.ManagerDao;
import com.model.Manager;
import com.service.ManagerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/8/31.
 */
@Service
public class ManagerServiceImpl implements ManagerService{
    @Resource
    private ManagerDao managerDao;

    @Override
    public Manager login(Manager manager) {
        return managerDao.login(manager);
    }

    @Override
    public List<Manager> getManagerList() {
        return managerDao.getManagerList();
    }

    @Override
    public int insertManager(Manager manager) {
        return managerDao.insertManager(manager);
    }

    @Override
    public int modifyManager(Manager manager) {
        return managerDao.modifyManager(manager);
    }

    @Override
    public int deleteManager(Manager manager) {
        return managerDao.deleteManager(manager);
    }

    @Override
    public int deleteAuthbyid(int id) {
        return managerDao.deleteAuthbyid(id);
    }

    @Override
    public int insertAuthbyid(ArrayList<Integer> ids) {
        return managerDao.insertAuthbyid(ids);
    }

}
